package cn.sjx.graduate.service;

import cn.sjx.graduate.domain.Employee;
import cn.sjx.graduate.dto.EmployeeDTO;
import cn.sjx.graduate.qo.QueryObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bo-feifei
 * @since 2021-11-07
 */
public interface IEmployeeService extends IService<Employee> {

    PageInfo<Employee> query(QueryObject qo);

    Employee getEmployeeByUsername(String username);

    Map<String, Object> login(Employee employee);

    IPage<Employee> queryPage(QueryObject qo);

    /**
     * 新增教职用户
     *
     * @param employeeDTO
     */
    void saveEmployee(EmployeeDTO employeeDTO);

    void updateEmployee(EmployeeDTO employeeDTO);

}
